const path = require('path')
module.exports = {
  mode:'development',
  entry:'./src/index.js',
  output:{
    path:path.resolve(__dirname,'dist'),
    filename:'atguigu-utils.js',
    // 向外暴露的对象的名称
    library:'utils',
    // 打包生成库可以通过esm/commonjs/require.js的语法引入
    libraryTarget:'umd'
  }
}